package com.cssl.service.impl;

import com.cssl.domain.CategorySellAmts;
import com.cssl.domain.DayStatis;
import com.cssl.mapper.StatMapper;
import com.cssl.service.StatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StatsServiceImpl implements StatsService {
    @Autowired
    private StatMapper statMapper;

    @Override
    public List<DayStatis> statisIncreaseUserCnt(int daysAgo) {
        return statMapper.statisIncreaseUserCnt(daysAgo);
    }

    @Override
    public List<DayStatis> statisIncreaseOrderCnt(int daysAgo) {
        return statMapper.statisIncreaseOrderCnt(daysAgo);
    }

    @Override
    public List<CategorySellAmts> categorySell() {
        return statMapper.categorySell();
    }
}
